package com.jsoft.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 获取一个no的工具类
 *
 * @author snkstart
 * @create 2023-02-22 13:31
 */
public class NoUtil {

    public static String getNo() {
        StringBuilder nosb = new StringBuilder();
        nosb.append("N");


        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
        Date date = new Date();
        String now = simpleDateFormat.format(date);
        nosb.append(now);

        nosb.append("000001");
        System.out.println(nosb);
        String no = nosb.toString();
        return no;


    }
}
